package com.edu.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.common.annotation.Excel;
import com.edu.common.core.domain.BaseEntity;

/**
 * 班级对象 t_class
 *
 * @author xxxx
 * @date 2023-12-17
 */
@Data
public class TClass extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 班徽
     */
//    @Excel(name = "班徽")
    private String image;

    /**
     * 届
     */
    @Excel(name = "届")
    private String cohort;

    /**
     * 班主任
     */
    @Excel(name = "班主任")
    private String classTeacher;

    /**
     * 教室id
     */
    private Long roomId;

    /**
     * 教室名称
     */
    @Excel(name = "教室名称")
    private String roomName;
    
    
    private int studentNum;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("image", getImage())
                .append("cohort", getCohort())
                .append("classTeacher", getClassTeacher())
                .append("roomId", getRoomId())
                .append("roomName", getRoomName())
                .toString();
    }
}
